package chapter3;
import java.util.Scanner;
/****************************************************************
 * Author：icynlau
 * Description:点是否在矩形内
 * Date:2021/4/1 
 * ***************************************************************
 */
public class exc3_23 {
	public static void main(String[] args) {
		Scanner input=new Scanner(System.in);
		System.out.println("Enter the point --x y :");
		double x=input.nextDouble();
		double y=input.nextDouble();
		if(Math.abs(x-0)<=5&&Math.abs(y-0)<=2.5) {
			System.out.println("Point ("+x+" , "+y+") is in the rectangle.");
		}else {
			System.out.println("Point ("+x+" , "+y+") is not in the rectangle.");
		}
		
	}

}
